using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UwinEducation.Shared.Models.Auth;

namespace UwinEducation.Application.Common.Interfaces
{

    public interface IAuthService
    {
        /// <summary>
        /// 用户登录
        /// </summary>
        Task<TokenResponse> LoginAsync(LoginRequest request);

        /// <summary>
        /// 刷新令牌
        /// </summary>
        Task<TokenResponse> RefreshTokenAsync(string refreshToken);

        /// <summary>
        /// 注销登录
        /// </summary>
        Task LogoutAsync(string accessToken);
    }
}